<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>餐厅订单信息管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
            $('#inputForm').bootstrapValidator({
                message: 'This value is not valid',
                feedbackIcons: {
                    valid: 'glyphicon glyphicon-ok',
                    invalid: 'glyphicon glyphicon-remove',
                    validating: 'glyphicon glyphicon-refresh'
                },
                fields: {
						
					restaurantId: {
                            message: 'restaurantId格式错误',
                            validators: {
                                notEmpty: {
                                    message: 'restaurantId不能为空'
                                }
                            }
                        }
						,
					restaurantTableId: {
                            message: 'restaurantTableId格式错误',
                            validators: {
                                notEmpty: {
                                    message: 'restaurantTableId不能为空'
                                }
                            }
                        }
						,
					serialNum: {
                            message: 'serialNum格式错误',
                            validators: {
                                notEmpty: {
                                    message: 'serialNum不能为空'
                                }
                            }
                        }
						,
					billNo: {
                            message: 'billNo格式错误',
                            validators: {
                                notEmpty: {
                                    message: 'billNo不能为空'
                                }
                            }
                        }
						,
					name: {
                            message: 'name格式错误',
                            validators: {
                                notEmpty: {
                                    message: 'name不能为空'
                                }
                            }
                        }
						,
					englishName: {
                            message: 'englishName格式错误',
                            validators: {
                                notEmpty: {
                                    message: 'englishName不能为空'
                                }
                            }
                        }
						,
					chineseName: {
                            message: 'chineseName格式错误',
                            validators: {
                                notEmpty: {
                                    message: 'chineseName不能为空'
                                }
                            }
                        }
						,
					totalPrice: {
                            message: 'totalPrice格式错误',
                            validators: {
                                notEmpty: {
                                    message: 'totalPrice不能为空'
                                }
                            }
                        }
						,
					totalDiscountPrice: {
                            message: 'totalDiscountPrice格式错误',
                            validators: {
                                notEmpty: {
                                    message: 'totalDiscountPrice不能为空'
                                }
                            }
                        }
						,
					rebate: {
                            message: 'rebate格式错误',
                            validators: {
                                notEmpty: {
                                    message: 'rebate不能为空'
                                }
                            }
                        }
						,
					abatement: {
                            message: 'abatement格式错误',
                            validators: {
                                notEmpty: {
                                    message: 'abatement不能为空'
                                }
                            }
                        }
						,
					servicePrice: {
                            message: 'servicePrice格式错误',
                            validators: {
                                notEmpty: {
                                    message: 'servicePrice不能为空'
                                }
                            }
                        }
						,
					serviceTariffing: {
                            message: 'serviceTariffing格式错误',
                            validators: {
                                notEmpty: {
                                    message: 'serviceTariffing不能为空'
                                }
                            }
                        }
						,
					receivablePrice: {
                            message: 'receivablePrice格式错误',
                            validators: {
                                notEmpty: {
                                    message: 'receivablePrice不能为空'
                                }
                            }
                        }
						,
					actualReceivePrice: {
                            message: 'actualReceivePrice格式错误',
                            validators: {
                                notEmpty: {
                                    message: 'actualReceivePrice不能为空'
                                }
                            }
                        }
						,
					refundPrice: {
                            message: 'refundPrice格式错误',
                            validators: {
                                notEmpty: {
                                    message: 'refundPrice不能为空'
                                }
                            }
                        }
						,
					orderStatus: {
                            message: 'orderStatus格式错误',
                            validators: {
                                notEmpty: {
                                    message: 'orderStatus不能为空'
                                }
                            }
                        }
						,
					restaurantStaffCashierId: {
                            message: 'restaurantStaffCashierId格式错误',
                            validators: {
                                notEmpty: {
                                    message: 'restaurantStaffCashierId不能为空'
                                }
                            }
                        }
						,
					cashierTime: {
                            message: 'cashierTime格式错误',
                            validators: {
                                notEmpty: {
                                    message: 'cashierTime不能为空'
                                }
                            }
                        }
                }
            })
		});
	</script>
</head>
<body>
	<ul class="nav nav-tabs nav-tabss">
		<li><a href="${ctx}/order/restaurantOrder/">餐厅订单信息列表</a></li>
		<li class="active"><a href="${ctx}/order/restaurantOrder/form?id=${restaurantOrder.id}">餐厅订单信息<shiro:hasPermission name="order:restaurantOrder:edit">${not empty restaurantOrder.id?'修改':'添加'}</shiro:hasPermission><shiro:lacksPermission name="order:restaurantOrder:edit">查看</shiro:lacksPermission></a></li>
	</ul>
	<div class="ibox-content">
		<form:form id="inputForm" modelAttribute="restaurantOrder" action="${ctx}/order/restaurantOrder/save" method="post" class="form-horizontal">
			<tags:message content="${message}"/>
			<form:hidden path="id"/>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="restaurantId">restaurantId:</label>
                    <div class="col-sm-4">
                        <form:input path="restaurantId" htmlEscape="false" class="required form-control"/>
                        <span class="help-inline"><font color="red">*</font> </span>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="restaurantTableId">restaurantTableId:</label>
                    <div class="col-sm-4">
                        <form:input path="restaurantTableId" htmlEscape="false" class="required form-control"/>
                        <span class="help-inline"><font color="red">*</font> </span>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="serialNum">serialNum:</label>
                    <div class="col-sm-4">
                        <form:input path="serialNum" htmlEscape="false" class="required form-control"/>
                        <span class="help-inline"><font color="red">*</font> </span>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="billNo">billNo:</label>
                    <div class="col-sm-4">
                        <form:input path="billNo" htmlEscape="false" class="required form-control"/>
                        <span class="help-inline"><font color="red">*</font> </span>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="name">name:</label>
                    <div class="col-sm-4">
                        <form:input path="name" htmlEscape="false" class="required form-control"/>
                        <span class="help-inline"><font color="red">*</font> </span>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="englishName">englishName:</label>
                    <div class="col-sm-4">
                        <form:input path="englishName" htmlEscape="false" class="required form-control"/>
                        <span class="help-inline"><font color="red">*</font> </span>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="chineseName">chineseName:</label>
                    <div class="col-sm-4">
                        <form:input path="chineseName" htmlEscape="false" class="required form-control"/>
                        <span class="help-inline"><font color="red">*</font> </span>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="totalPrice">totalPrice:</label>
                    <div class="col-sm-4">
                        <form:input path="totalPrice" htmlEscape="false" class="required form-control"/>
                        <span class="help-inline"><font color="red">*</font> </span>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="totalDiscountPrice">totalDiscountPrice:</label>
                    <div class="col-sm-4">
                        <form:input path="totalDiscountPrice" htmlEscape="false" class="required form-control"/>
                        <span class="help-inline"><font color="red">*</font> </span>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="rebate">rebate:</label>
                    <div class="col-sm-4">
                        <form:input path="rebate" htmlEscape="false" class="required form-control"/>
                        <span class="help-inline"><font color="red">*</font> </span>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="abatement">abatement:</label>
                    <div class="col-sm-4">
                        <form:input path="abatement" htmlEscape="false" class="required form-control"/>
                        <span class="help-inline"><font color="red">*</font> </span>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="servicePrice">servicePrice:</label>
                    <div class="col-sm-4">
                        <form:input path="servicePrice" htmlEscape="false" class="required form-control"/>
                        <span class="help-inline"><font color="red">*</font> </span>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="serviceTariffing">serviceTariffing:</label>
                    <div class="col-sm-4">
                        <form:input path="serviceTariffing" htmlEscape="false" class="required form-control"/>
                        <span class="help-inline"><font color="red">*</font> </span>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="receivablePrice">receivablePrice:</label>
                    <div class="col-sm-4">
                        <form:input path="receivablePrice" htmlEscape="false" class="required form-control"/>
                        <span class="help-inline"><font color="red">*</font> </span>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="actualReceivePrice">actualReceivePrice:</label>
                    <div class="col-sm-4">
                        <form:input path="actualReceivePrice" htmlEscape="false" class="required form-control"/>
                        <span class="help-inline"><font color="red">*</font> </span>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="refundPrice">refundPrice:</label>
                    <div class="col-sm-4">
                        <form:input path="refundPrice" htmlEscape="false" class="required form-control"/>
                        <span class="help-inline"><font color="red">*</font> </span>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="orderStatus">orderStatus:</label>
                    <div class="col-sm-4">
                        <form:input path="orderStatus" htmlEscape="false" class="required form-control"/>
                        <span class="help-inline"><font color="red">*</font> </span>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="restaurantStaffCashierId">restaurantStaffCashierId:</label>
                    <div class="col-sm-4">
                        <form:input path="restaurantStaffCashierId" htmlEscape="false" class="required form-control"/>
                        <span class="help-inline"><font color="red">*</font> </span>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="cashierTime">cashierTime:</label>
                    <div class="col-sm-4">
                        <form:input path="cashierTime" htmlEscape="false" class="required form-control"/>
                        <span class="help-inline"><font color="red">*</font> </span>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
			<div class="form-group">
				<label class="col-sm-2 control-label"></label>
				<div class="col-sm-4">
					<shiro:hasPermission name="order:restaurantOrder:edit">
						<input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>&nbsp;
					</shiro:hasPermission>
					<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
				</div>
			</div>
		</form:form>
	</div>
</body>
</html>
